package com.na.report.db;

import java.io.InputStream;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

public class DBFactory {
	
	private SqlSessionFactory factory;
	
	public DBFactory(InputStream in) {
		factory = new SqlSessionFactoryBuilder().build(in);
	}
	
	public SqlSession openSession() {
		return factory.openSession();
	}
	
}
